const schedule = require('node-schedule');

const  scheduleCronstyle = (timeRule)=>{
  //每分钟的第30秒定时执行一次:
    schedule.scheduleJob(timeRule, ()=>{
        console.log('scheduleCronstyle:' + new Date());
    }); 
}

module.exports.default = scheduleCronstyle

// timeRule = '5 40 8 * * *'
// scheduleCronstyle(timeRule);